www.gusucode.com > VC++动态链接库DLL操作实例-源码程序 > VC++动态链接库DLL操作实例-源码程序/code/如何使用关键字_declspec (dllexport)导出函数/Test/Test.cpp

    //Download by http://www.NewXing.com
// Test.cpp : Defines the entry point for the DLL application.
//

#include "stdafx.h"
#include "Test.h"


BOOL APIENTRY DllMain( HANDLE hModule, 
                       DWORD  ul_reason_for_call, 
                       LPVOID lpReserved
					 )
{
    return TRUE;
}

extern "C" TEST_API int fnTest(void)
{
	return 100;
}